package com.example.demo.Dao;

import com.example.demo.Model.applylev;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ApplylevDao {
    @Update("update applylev set situation=#{situation} where id=#{id}")
    public void updateSituation(@Param("situation") String situation, @Param("id") int id);

    @Select("select*from applylev where teID=#{teID}")
    public List<applylev> showApply(@Param("teID") String teID);

}
